

<div class="album">
    <div class="head_title" style="margin-bottom: 15px">
        <span class="jump-color" ui-sref="main.adminUsers">用户管理</span>
        <span class="tit-color"> / 用户{{adminId?'修改':'创建'}}</span>
    </div>
    <form class="form-horizontal create-input w5c-form demo-form" w5c-form-validate name="mainForm">

        <section class="fg-section" style="padding-top: 30px">
                <div class="form-group personal-second">
                    <label class="col-sm-3 control-label"><i class="red-icon">*</i>邮箱：</label>
                    <div class="col-sm-7 personal-head">
                        <input type="text" class="input" placeholder="邮箱" ng-model="formData.userName" name="userName"
                               ng-pattern=" /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/"  required="">
                    </div>
                </div>

                <div class="form-group personal-second">
                    <label class="col-sm-3 control-label">手机号：</label>
                    <div class="col-sm-7 personal-head">
                        <input type="text" class="input long-input" placeholder="手机号" ng-model="formData.phoneNum" name="phoneNum"
                                ng-pattern="/^[0-9]{11}$/">
                    </div>
                </div>
                <div class="form-group personal-second">
                    <label class="col-sm-3 control-label"><i class="red-icon">*</i>姓名：</label>
                    <div class="col-sm-7 personal-head">
                        <input type="text" class="input long-input" placeholder="全名" ng-model="formData.fullName" name="fullName"
                                required="" ng-maxlength="20" ng-minlength="2">
                    </div>
                </div>
                <div class="form-group personal-second">
                    <label class="col-sm-3 control-label"><i class="red-icon">*</i>部门：</label>
                    <div class="col-sm-7 personal-head">
                        <select ng-model="formData.firDepartmentId" ng-options="department.departmentId  as department.departmentName for department in departments"
                                name="firDepartmentId" required="" ng-change="departmentChange(formData.firDepartmentId)" ></select>
                        <select ng-model="formData.departmentId" ng-options="department.departmentId  as department.departmentName for department in secDepartments"
                                name="departmentId" required="" style="margin-left: 24px" ></select>
                    </div>
                </div>
                <div class="form-group personal-second">
                    <label class="col-sm-3 control-label"><i class="red-icon">*</i>角色：</label>
                    <div class="col-sm-7 personal-head">
                        <select ng-model="formData.roleId" ng-options="role.roleId  as role.roleName for role in roleList"
                               name="roleId" required=""></select>


                    </div>
                </div>


        </section>



        <footer class="container-fluid foot-wrap">
            <div class="text-center">
                <button class="btn btn-primary" style="width: 90px" type="button" w5c-form-submit="submit()">{{'确定'}}</button>
                <button type="button" style="width: 90px" class="btn ims-btn" ui-sref="main.adminUsers">取消</button>
            </div>
        </footer>

    </form>


</div>